<template>
  <div class="q-pa-md">
    <div class="q-gutter-md row items-start">
      <t-card
        flat
        bordered
        v-for="type in skeletonTypes"
        :key="type"
        style="width: 250px"
      >
        <t-card-section>
          <div class="text-caption">"{{ type }}"</div>
        </t-card-section>

        <t-separator />

        <t-card-section>
          <t-skeleton :type="type" />
        </t-card-section>
      </t-card>
    </div>
  </div>
</template>

<script>
  export default {
    setup() {
      return {
        skeletonTypes: [
          'text',
          'rect',
          'circle',
          'QBtn',
          'QBadge',
          'QChip',
          'QToolbar',
          'QCheckbox',
          'QRadio',
          'QToggle',
          'QSlider',
          'QRange',
          'QInput',
          'QAvatar',
        ],
      };
    },
  };
</script>
